package cn.jichangxiu.common.web.model.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@ToString
@Data
@ApiModel("返回对象实体")
@NoArgsConstructor
public class R<T> extends ResponseResult {
    @ApiModelProperty("封装的所要请求的对象内容实体以及内容数目")
    private QueryResult result;

    public R(ResultCode resultCode, QueryResult result){
        super(resultCode);
        this.result = result;
    }

    public R(ResultCode resultCode){
        super(resultCode);
    }
}
